import json
import os

from feature_set.call.un.call_un_base0_v1.CallUnBase0V1 import CallUnBase0V1


class CallIdBase0V1(CallUnBase0V1):
    def __init__(self):
        super().__init__()
        self.country_info = json.load(
            open(
                os.path.join(
                    self.conf_dir,
                    "call",
                    "id",
                    "call_id_base0_v1",
                    "call_id_base0_v1_country_info.json",
                )
            )
        )
        self.type_name = "call_log_connection_status"
        self.duration_name = "call_log_duration"
        self.name_name = "call_log_address_name"
        self.phone_name = "call_log_number"
        self.calltime_name = "calloranswer_time"
        self.type_trans_hash = {
            "incoming_call": "1",
            "outgoing_call": "2",
            "missed_call": "3",
            "cancellation_call": "4",
        }
